package com.caipos.actor.ruleChain;

import com.caipos.actor.common.msg.MsgType;
import com.caipos.actor.common.msg.KbMsg;
import com.caipos.actor.api.KbContext;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;

@EqualsAndHashCode(callSuper = true)
@ToString
final class RuleChainToRuleNodeMsg extends KbToRuleNodeActorMsg {

    @Getter
    private final String fromRelationType;

    public RuleChainToRuleNodeMsg(KbContext ctx, KbMsg kbMsg, String fromRelationType) {
        super(ctx, kbMsg);
        this.fromRelationType = fromRelationType;
    }

    @Override
    public MsgType getMsgType() {
        return MsgType.RULE_CHAIN_TO_RULE_MSG;
    }
}
